
#include "MysqlErrorInfo.h"
#include <assert.h>
#include <string>

// form mysql refman-5.4
static struct error_info_t s_error_infos[] = {
	{ 1000, "Server", "hashchk" },
	{ 1001, "Server", "isamchk" },
	{ 1002, "Server", "NO" },
	{ 1003, "Server", "YES" },
	{ 1004, "Server", "Can't create file '%s' (errno: %d)" },
	{ 1005, "Server", "Can't create table '%s' (errno: %d)" },
	{ 1006, "Server", "Can't create database '%s' (errno: %d)" },
	{ 1007, "Server", "Can't create database '%s'; database exists" },
	{ 1008, "Server", "Can't drop database '%s'; database doesn't exist" },
	{ 1009, "Server", "Error dropping database (can't delete '%s', errno: %d)" },
	{ 1010, "Server", "Error dropping database (can't rmdir '%s', errno: %d)" },
	{ 1011, "Server", "Error on delete of '%s' (errno: %d)" },
	{ 1012, "Server", "Can't read record in system table" },
	{ 1013, "Server", "Can't get status of '%s' (errno: %d)" },
	{ 1014, "Server", "Can't get working directory (errno: %d)" },
	{ 1015, "Server", "Can't lock file (errno: %d)" },
	{ 1016, "Server", "Can't open file: '%s' (errno: %d)" },
	{ 1017, "Server", "Can't find file: '%s' (errno: %d)" },
	{ 1018, "Server", "Can't read dir of '%s' (errno: %d)" },
	{ 1019, "Server", "Can't change dir to '%s' (errno: %d)" },
	{ 1020, "Server", "Record has changed since last read in table '%s'" },
	{ 1021, "Server", "Disk full (%s); waiting for someone to free some space..." },
	{ 1022, "Server", "Can't write; duplicate key in table '%s'" },
	{ 1023, "Server", "Error on close of '%s' (errno: %d)" },
	{ 1024, "Server", "Error reading file '%s' (errno: %d)" },
	{ 1025, "Server", "Error on rename of '%s' to '%s' (errno: %d)" },
	{ 1026, "Server", "Error writing file '%s' (errno: %d)" },
	{ 1027, "Server", "'%s' is locked against change" },
	{ 1028, "Server", "Sort aborted" },
	{ 1029, "Server", "View '%s' doesn't exist for '%s'" },
	{ 1030, "Server", "Got error %d from storage engine" },
	{ 1031, "Server", "Table storage engine for '%s' doesn't have this option" },
	{ 1032, "Server", "Can't find record in '%s'" },
	{ 1033, "Server", "Incorrect information in file: '%s'" },
	{ 1034, "Server", "Incorrect key file for table '%s'; try to repair it" },
	{ 1035, "Server", "Old key file for table '%s'; repair it!" },
	{ 1036, "Server", "Table '%s' is read only" },
	{ 1037, "Server", "Out of memory; restart server and try again (needed %d bytes)" },
	{ 1038, "Server", "Out of sort memory; increase server sort buffer size" },
	{ 1039, "Server", "Unexpected EOF found when reading file '%s' (errno: %d)" },
	{ 1040, "Server", "Too many connections" },
	{ 1041, "Server", "Out of memory; check if mysqld or some other process uses all available memory; if not, you may have to use 'ulimit' to allow mysqld to use more memory or you can add more swap space" },
	{ 1042, "Server", "Can't get hostname for your address" },
	{ 1043, "Server", "Bad handshake" },
	{ 1044, "Server", "Access denied for user '%s'@'%s' to database '%s'" },
	{ 1045, "Server", "Access denied for user '%s'@'%s' (using password: %s)" },
	{ 1046, "Server", "No database selected" },
	{ 1047, "Server", "Unknown command" },
	{ 1048, "Server", "Column '%s' cannot be null" },
	{ 1049, "Server", "Unknown database '%s'" },
	{ 1050, "Server", "Table '%s' already exists" },
	{ 1051, "Server", "Unknown table '%s'" },
	{ 1052, "Server", "Column '%s' in %s is ambiguous" },
	{ 1053, "Server", "Server shutdown in progress" },
	{ 1054, "Server", "Unknown column '%s' in '%s'" },
	{ 1055, "Server", "'%s' isn't in GROUP BY" },
	{ 1056, "Server", "Can't group on '%s'" },
	{ 1057, "Server", "Statement has sum functions and columns in same statement" },
	{ 1058, "Server", "Column count doesn't match value count" },
	{ 1059, "Server", "Identifier name '%s' is too long" },
	{ 1060, "Server", "Duplicate column name '%s'" },
	{ 1061, "Server", "Duplicate key name '%s'" },
	{ 1062, "Server", "Duplicate entry '%s' for key %d" },
	{ 1063, "Server", "Incorrect column specifier for column '%s'" },
	{ 1064, "Server", "%s near '%s' at line %d" },
	{ 1065, "Server", "Query was empty" },
	{ 1066, "Server", "Not unique table/alias: '%s'" },
	{ 1067, "Server", "Invalid default value for '%s'" },
	{ 1068, "Server", "Multiple primary key defined" },
	{ 1069, "Server", "Too many keys specified; max %d keys allowed" },
	{ 1070, "Server", "Too many key parts specified; max %d parts allowed" },
	{ 1071, "Server", "Specified key was too long; max key length is %d bytes" },
	{ 1072, "Server", "Key column '%s' doesn't exist in table" },
	{ 1073, "Server", "BLOB column '%s' can't be used in key specification with the used table type" },
	{ 1074, "Server", "Column length too big for column '%s' (max = %lu); use BLOB or TEXT instead" },
	{ 1075, "Server", "Incorrect table definition; there can be only one auto column and it must be defined as a key" },
	{ 1076, "Server", "%s: ready for connections. Version: '%s' socket: '%s' port: %d" },
	{ 1077, "Server", "%s: Normal shutdown" },
	{ 1078, "Server", "%s: Got signal %d. Aborting!" },
	{ 1079, "Server", "%s: Shutdown complete" },
	{ 1080, "Server", "%s: Forcing close of thread %ld user: '%s'" },
	{ 1081, "Server", "Can't create IP socket" },
	{ 1082, "Server", "Table '%s' has no index like the one used in CREATE INDEX; recreate the table" },
	{ 1083, "Server", "Field separator argument is not what is expected; check the manual" },
	{ 1084, "Server", "You can't use fixed rowlength with BLOBs; please use 'fields terminated by'" },
	{ 1085, "Server", "The file '%s' must be in the database directory or be readable by all" },
	{ 1086, "Server", "File '%s' already exists" },
	{ 1087, "Server", "Records: %ld Deleted: %ld Skipped: %ld Warnings: %ld" },
	{ 1088, "Server", "Records: %ld Duplicates: %ld" },
	{ 1089, "Server", "Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys" },
	{ 1090, "Server", "You can't delete all columns with ALTER TABLE; use DROP TABLE instead" },
	{ 1091, "Server", "Can't DROP '%s'; check that column/key exists" },
	{ 1092, "Server", "Records: %ld Duplicates: %ld Warnings: %ld" },
	{ 1093, "Server", "You can't specify target table '%s' for update in FROM clause" },
	{ 1094, "Server", "Unknown thread id: %lu" },
	{ 1095, "Server", "You are not owner of thread %lu" },
	{ 1096, "Server", "No tables used" },
	{ 1097, "Server", "Too many strings for column %s and SET" },
	{ 1098, "Server", "Can't generate a unique log-filename %s.(1-999)" },
	{ 1099, "Server", "Table '%s' was locked with a READ lock and can't be updated" },
	{ 1100, "Server", "Table '%s' was not locked with LOCK TABLES" },
	{ 1101, "Server", "BLOB/TEXT column '%s' can't have a default value" },
	{ 1102, "Server", "Incorrect database name '%s'" },
	{ 1103, "Server", "Incorrect table name '%s'" },
	{ 1104, "Server", "The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is okay" },
	{ 1105, "Server", "Unknown error" },
	{ 1106, "Server", "Unknown procedure '%s'" },
	{ 1107, "Server", "Incorrect parameter count to procedure '%s'" },
	{ 1108, "Server", "Incorrect parameters to procedure '%s'" },
	{ 1109, "Server", "Unknown table '%s' in %s" },
	{ 1110, "Server", "Column '%s' specified twice" },
	{ 1111, "Server", "Invalid use of group function" },
	{ 1112, "Server", "Table '%s' uses an extension that doesn't exist in this MySQL version" },
	{ 1113, "Server", "A table must have at least 1 column" },
	{ 1114, "Server", "The table '%s' is full" },
	{ 1115, "Server", "Unknown character set: '%s'" },
	{ 1116, "Server", "Too many tables; MySQL can only use %d tables in a join" },
	{ 1117, "Server", "Too many columns" },
	{ 1118, "Server", "Row size too large. The maximum row size for the used table type, not counting BLOBs, is %ld. You have to change some columns to TEXT or BLOBs" },
	{ 1119, "Server", "Thread stack overrun: Used: %ld of a %ld stack. Use 'mysqld -O thread_stack=#' to specify a bigger stack if needed" },
	{ 1120, "Server", "Cross dependency found in OUTER JOIN; examine your ON conditions" },
	{ 1121, "Server", "Table handler doesn't support NULL in given index. Please change column '%s' to be NOT NULL or use another handler" },
	{ 1122, "Server", "Can't load function '%s'" },
	{ 1123, "Server", "Can't initialize function '%s'; %s" },
	{ 1124, "Server", "No paths allowed for shared library" },
	{ 1125, "Server", "Function '%s' already exists" },
	{ 1126, "Server", "Can't open shared library '%s' (errno: %d %s)" },
	{ 1127, "Server", "Can't find symbol '%s' in library" },
	{ 1128, "Server", "Function '%s' is not defined" },
	{ 1129, "Server", "Host '%s' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'" },
	{ 1130, "Server", "Host '%s' is not allowed to connect to this MySQL server" },
	{ 1131, "Server", "You are using MySQL as an anonymous user and anonymous users are not allowed to change passwords" },
	{ 1132, "Server", "You must have privileges to update tables in the mysql database to be able to change passwords for others" },
	{ 1133, "Server", "Can't find any matching row in the user table" },
	{ 1134, "Server", "Rows matched: %ld Changed: %ld Warnings: %ld" },
	{ 1135, "Server", "Can't create a new thread (errno %d); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug" },
	{ 1136, "Server", "Column count doesn't match value count at row %ld" },
	{ 1137, "Server", "Can't reopen table: '%s'" },
	{ 1138, "Server", "Invalid use of NULL value" },
	{ 1139, "Server", "Got error '%s' from regexp" },
	{ 1140, "Server", "Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUP BY clause" },
	{ 1141, "Server", "There is no such grant defined for user '%s' on host '%s'" },
	{ 1142, "Server", "%s command denied to user '%s'@'%s' for table '%s'" },
	{ 1143, "Server", "%s command denied to user '%s'@'%s' for column '%s' in table '%s'" },
	{ 1144, "Server", "Illegal GRANT/REVOKE command; please consult the manual to see which privileges can be used" },
	{ 1145, "Server", "The host or user argument to GRANT is too long" },
	{ 1146, "Server", "Table '%s.%s' doesn't exist" },
	{ 1147, "Server", "There is no such grant defined for user '%s' on host '%s' on table '%s'" },
	{ 1148, "Server", "The used command is not allowed with this MySQL version" },
	{ 1149, "Server", "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use" },
	{ 1150, "Server", "Delayed insert thread couldn't get requested lock for table %s" },
	{ 1151, "Server", "Too many delayed threads in use" },
	{ 1152, "Server", "Aborted connection %ld to db: '%s' user: '%s' (%s)" },
	{ 1153, "Server", "Got a packet bigger than 'max_allowed_packet' bytes" },
	{ 1154, "Server", "Got a read error from the connection pipe" },
	{ 1155, "Server", "Got an error from fcntl()" },
	{ 1156, "Server", "Got packets out of order" },
	{ 1157, "Server", "Couldn't uncompress communication packet" },
	{ 1158, "Server", "Got an error reading communication packets" },
	{ 1159, "Server", "Got timeout reading communication packets" },
	{ 1160, "Server", "Got an error writing communication packets" },
	{ 1161, "Server", "Got timeout writing communication packets" },
	{ 1162, "Server", "Result string is longer than 'max_allowed_packet' bytes" },
	{ 1163, "Server", "The used table type doesn't support BLOB/TEXT columns" },
	{ 1164, "Server", "The used table type doesn't support AUTO_INCREMENT columns" },
	{ 1165, "Server", "INSERT DELAYED can't be used with table '%s' because it is locked with LOCK TABLES" },
	{ 1166, "Server", "Incorrect column name '%s'" },
	{ 1167, "Server", "The used storage engine can't index column '%s'" },
	{ 1168, "Server", "Unable to open underlying table which is differently defined or of non-MyISAM type or doesn't exist" },
	{ 1169, "Server", "Can't write, because of unique constraint, to table '%s'" },
	{ 1170, "Server", "BLOB/TEXT column '%s' used in key specification without a key length" },
	{ 1171, "Server", "All parts of a PRIMARY KEY must be NOT NULL; if you need NULL in a key, use UNIQUE instead" },
	{ 1172, "Server", "Result consisted of more than one row" },
	{ 1173, "Server", "This table type requires a primary key" },
	{ 1174, "Server", "This version of MySQL is not compiled with RAID support" },
	{ 1175, "Server", "You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column" },
	{ 1176, "Server", "Key '%s' doesn't exist in table '%s'" },
	{ 1177, "Server", "Can't open table" },
	{ 1178, "Server", "The storage engine for the table doesn't support %s" },
	{ 1179, "Server", "You are not allowed to execute this command in a transaction" },
	{ 1180, "Server", "Got error %d during COMMIT" },
	{ 1181, "Server", "Got error %d during ROLLBACK" },
	{ 1182, "Server", "Got error %d during FLUSH_LOGS" },
	{ 1183, "Server", "Got error %d during CHECKPOINT" },
	{ 1184, "Server", "Aborted connection %ld to db: '%s' user: '%s' host: '%s' (%s)" },
	{ 1185, "Server", "The storage engine for the table does not support binary table dump" },
	{ 1186, "Server", "Binlog closed, cannot RESET MASTER" },
	{ 1187, "Server", "Failed rebuilding the index of dumped table '%s'" },
	{ 1188, "Server", "Error from master: '%s'" },
	{ 1189, "Server", "Net error reading from master" },
	{ 1190, "Server", "Net error writing to master" },
	{ 1191, "Server", "Can't find FULLTEXT index matching the column list" },
	{ 1192, "Server", "Can't execute the given command because you have active locked tables or an active transaction" },
	{ 1193, "Server", "Unknown system variable '%s'" },
	{ 1194, "Server", "Table '%s' is marked as crashed and should be repaired" },
	{ 1195, "Server", "Table '%s' is marked as crashed and last (automatic?) repair failed" },
	{ 1196, "Server", "Some non-transactional changed tables couldn't be rolled back" },
	{ 1197, "Server", "Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage; increase this mysqld variable and try again" },
	{ 1198, "Server", "This operation cannot be performed with a running slave; run STOP SLAVE first" },
	{ 1199, "Server", "This operation requires a running slave; configure slave and do START SLAVE" },
	{ 1200, "Server", "The server is not configured as slave; fix in config file or with CHANGE MASTER TO" },
	{ 1201, "Server", "Could not initialize master info structure; more error messages can be found in the MySQL error log" },
	{ 1202, "Server", "Could not create slave thread; check system resources" },
	{ 1203, "Server", "User %s already has more than 'max_user_connections' active connections" },
	{ 1204, "Server", "You may only use constant expressions with SET" },
	{ 1205, "Server", "Lock wait timeout exceeded; try restarting transaction" },
	{ 1206, "Server", "The total number of locks exceeds the lock table size" },
	{ 1207, "Server", "Update locks cannot be acquired during a READ UNCOMMITTED transaction" },
	{ 1208, "Server", "DROP DATABASE not allowed while thread is holding global read lock" },
	{ 1209, "Server", "CREATE DATABASE not allowed while thread is holding global read lock" },
	{ 1210, "Server", "Incorrect arguments to %s" },
	{ 1211, "Server", "'%s'@'%s' is not allowed to create new users" },
	{ 1212, "Server", "Incorrect table definition; all MERGE tables must be in the same database" },
	{ 1213, "Server", "Deadlock found when trying to get lock; try restarting transaction" },
	{ 1214, "Server", "The used table type doesn't support FULLTEXT indexes" },
	{ 1215, "Server", "Cannot add foreign key constraint" },
	{ 1216, "Server", "Cannot add or update a child row: a foreign key constraint fails" },
	{ 1217, "Server", "Cannot delete or update a parent row: a foreign key constraint fails" },
	{ 1218, "Server", "Error connecting to master: %s" },
	{ 1219, "Server", "Error running query on master: %s" },
	{ 1220, "Server", "Error when executing command %s: %s" },
	{ 1221, "Server", "Incorrect usage of %s and %s" },
	{ 1222, "Server", "The used SELECT statements have a different number of columns" },
	{ 1223, "Server", "Can't execute the query because you have a conflicting read lock" },
	{ 1224, "Server", "Mixing of transactional and non-transactional tables is disabled" },
	{ 1225, "Server", "Option '%s' used twice in statement" },
	{ 1226, "Server", "User '%s' has exceeded the '%s' resource (current value: %ld)" },
	{ 1227, "Server", "Access denied; you need the %s privilege for this operation" },
	{ 1228, "Server", "Variable '%s' is a SESSION variable and can't be used with SET GLOBAL" },
	{ 1229, "Server", "Variable '%s' is a GLOBAL variable and should be set with SET GLOBAL" },
	{ 1230, "Server", "Variable '%s' doesn't have a default value" },
	{ 1231, "Server", "Variable '%s' can't be set to the value of '%s'" },
	{ 1232, "Server", "Incorrect argument type to variable '%s'" },
	{ 1233, "Server", "Variable '%s' can only be set, not read" },
	{ 1234, "Server", "Incorrect usage/placement of '%s'" },
	{ 1235, "Server", "This version of MySQL doesn't yet support '%s'" },
	{ 1236, "Server", "Got fatal error %d: '%s' from master when reading data from binary log" },
	{ 1237, "Server", "Slave SQL thread ignored the query because of replicate-*-table rules" },
	{ 1238, "Server", "Variable '%s' is a %s variable" },
	{ 1239, "Server", "Incorrect foreign key definition for '%s': %s" },
	{ 1240, "Server", "Key reference and table reference don't match" },
	{ 1241, "Server", "Operand should contain %d column(s)" },
	{ 1242, "Server", "Subquery returns more than 1 row" },
	{ 1243, "Server", "Unknown prepared statement handler (%.*s) given to %s" },
	{ 1244, "Server", "Help database is corrupt or does not exist" },
	{ 1245, "Server", "Cyclic reference on subqueries" },
	{ 1246, "Server", "Converting column '%s' from %s to %s" },
	{ 1247, "Server", "Reference '%s' not supported (%s)" },
	{ 1248, "Server", "Every derived table must have its own alias" },
	{ 1249, "Server", "Select %u was reduced during optimization" },
	{ 1250, "Server", "Table '%s' from one of the SELECTs cannot be used in %s" },
	{ 1251, "Server", "Client does not support authentication protocol requested by server; consider upgrading MySQL client" },
	{ 1252, "Server", "All parts of a SPATIAL index must be NOT NULL" },
	{ 1253, "Server", "COLLATION '%s' is not valid for CHARACTER SET '%s'" },
	{ 1254, "Server", "Slave is already running" },
	{ 1255, "Server", "Slave already has been stopped" },
	{ 1256, "Server", "Uncompressed data size too large; the maximum size is %d (probably, length of uncompressed data was corrupted)" },
	{ 1257, "Server", "ZLIB: Not enough memory" },
	{ 1258, "Server", "ZLIB: Not enough room in the output buffer (probably, length of uncompressed data was corrupted)" },
	{ 1259, "Server", "ZLIB: Input data corrupted" },
	{ 1260, "Server", "%d line(s) were cut by GROUP_CONCAT()" },
	{ 1261, "Server", "Row %ld doesn't contain data for all columns" },
	{ 1262, "Server", "Row %ld was truncated; it contained more data than there were input columns" },
	{ 1263, "Server", "Column set to default value; NULL supplied to NOT NULL column '%s' at row %ld" },
	{ 1264, "Server", "Out of range value for column '%s' at row %ld" },
	{ 1265, "Server", "Data truncated for column '%s' at row %ld" },
	{ 1266, "Server", "Using storage engine %s for table '%s'" },
	{ 1267, "Server", "Illegal mix of collations (%s,%s) and (%s,%s) for operation '%s'" },
	{ 1268, "Server", "Cannot drop one or more of the requested users" },
	{ 1269, "Server", "Can't revoke all privileges for one or more of the requested users" },
	{ 1270, "Server", "Illegal mix of collations (%s,%s), (%s,%s), (%s,%s) for operation '%s'" },
	{ 1271, "Server", "Illegal mix of collations for operation '%s'" },
	{ 1272, "Server", "Variable '%s' is not a variable component (can't be used as XXXX.variable_name)" },
	{ 1273, "Server", "Unknown collation: '%s'" },
	{ 1274, "Server", "SSL parameters in CHANGE MASTER are ignored because this MySQL slave was compiled without SSL support; they can be used later if MySQL slave with SSL is started" },
	{ 1275, "Server", "Server is running in --secure-auth mode, but '%s'@'%s' has a password in the old format; please change the password to the new format" },
	{ 1276, "Server", "Field or reference '%s%s%s%s%s' of SELECT #%d was resolved in SELECT #%d" },
	{ 1277, "Server", "Incorrect parameter or combination of parameters for START SLAVE UNTIL" },
	{ 1278, "Server", "It is recommended to use --skip-slave-start when doing step-by-step replication with START SLAVE UNTIL; otherwise, you will get problems if you get an unexpected slave's mysqld restart" },
	{ 1279, "Server", "SQL thread is not to be started so UNTIL options are ignored" },
	{ 1280, "Server", "Incorrect index name '%s'" },
	{ 1281, "Server", "Incorrect catalog name '%s'" },
	{ 1282, "Server", "Query cache failed to set size %lu; new query cache size is %lu" },
	{ 1283, "Server", "Column '%s' cannot be part of FULLTEXT index" },
	{ 1284, "Server", "Unknown key cache '%s'" },
	{ 1285, "Server", "MySQL is started in --skip-name-resolve mode; you must restart it without this switch for this grant to work" },
	{ 1286, "Server", "Unknown table engine '%s'" },
	{ 1287, "Server", "'%s' is deprecated; use '%s' instead" },
	{ 1288, "Server", "The target table %s of the %s is not updatable" },
	{ 1289, "Server", "The '%s' feature is disabled; you need MySQL built with '%s' to have it working" },
	{ 1290, "Server", "The MySQL server is running with the %s option so it cannot execute this statement" },
	{ 1291, "Server", "Column '%s' has duplicated value '%s' in %s" },
	{ 1292, "Server", "Truncated incorrect %s value: '%s'" },
	{ 1293, "Server", "Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause" },
	{ 1294, "Server", "Invalid ON UPDATE clause for '%s' column" },
	{ 1295, "Server", "This command is not supported in the prepared statement protocol yet" },
	{ 1296, "Server", "Got error %d '%s' from %s" },
	{ 1297, "Server", "Got temporary error %d '%s' from %s" },
	{ 1298, "Server", "Unknown or incorrect time zone: '%s'" },
	{ 1299, "Server", "Invalid TIMESTAMP value in column '%s' at row %ld" },
	{ 1300, "Server", "Invalid %s character string: '%s'" },
	{ 1301, "Server", "Result of %s() was larger than max_allowed_packet (%ld) - truncated" },
	{ 1302, "Server", "Conflicting declarations: '%s%s' and '%s%s'" },
	{ 1303, "Server", "Can't create a %s from within another stored routine" },
	{ 1304, "Server", "%s %s already exists" },
	{ 1305, "Server", "%s %s does not exist" },
	{ 1306, "Server", "Failed to DROP %s %s" },
	{ 1307, "Server", "Failed to CREATE %s %s" },
	{ 1308, "Server", "%s with no matching label: %s" },
	{ 1309, "Server", "Redefining label %s" },
	{ 1310, "Server", "End-label %s without match" },
	{ 1311, "Server", "Referring to uninitialized variable %s" },
	{ 1312, "Server", "PROCEDURE %s can't return a result set in the given context" },
	{ 1313, "Server", "RETURN is only allowed in a FUNCTION" },
	{ 1314, "Server", "%s is not allowed in stored procedures" },
	{ 1315, "Server", "The update log is deprecated and replaced by the binary log; SET SQL_LOG_UPDATE has been ignored" },
	{ 1316, "Server", "The update log is deprecated and replaced by the binary log; SET SQL_LOG_UPDATE has been translated to SET SQL_LOG_BIN" },
	{ 1317, "Server", "Query execution was interrupted" },
	{ 1318, "Server", "Incorrect number of arguments for %s %s; expected %u, got %u" },
	{ 1319, "Server", "Undefined CONDITION: %s" },
	{ 1320, "Server", "No RETURN found in FUNCTION %s" },
	{ 1321, "Server", "FUNCTION %s ended without RETURN" },
	{ 1322, "Server", "Cursor statement must be a SELECT" },
	{ 1323, "Server", "Cursor SELECT must not have INTO" },
	{ 1324, "Server", "Undefined CURSOR: %s" },
	{ 1325, "Server", "Cursor is already open" },
	{ 1326, "Server", "Cursor is not open" },
	{ 1327, "Server", "Undeclared variable: %s" },
	{ 1328, "Server", "Incorrect number of FETCH variables" },
	{ 1329, "Server", "No data - zero rows fetched, selected, or processed" },
	{ 1330, "Server", "Duplicate parameter: %s" },
	{ 1331, "Server", "Duplicate variable: %s" },
	{ 1332, "Server", "Duplicate condition: %s" },
	{ 1333, "Server", "Duplicate cursor: %s" },
	{ 1334, "Server", "Failed to ALTER %s %s" },
	{ 1335, "Server", "Subquery value not supported" },
	{ 1336, "Server", "%s is not allowed in stored function or trigger" },
	{ 1337, "Server", "Variable or condition declaration after cursor or handler declaration" },
	{ 1338, "Server", "Cursor declaration after handler declaration" },
	{ 1339, "Server", "Case not found for CASE statement" },
	{ 1340, "Server", "Configuration file '%s' is too big" },
	{ 1341, "Server", "Malformed file type header in file '%s'" },
	{ 1342, "Server", "Unexpected end of file while parsing comment '%s'" },
	{ 1343, "Server", "Error while parsing parameter '%s' (line: '%s')" },
	{ 1344, "Server", "Unexpected end of file while skipping unknown parameter '%s'" },
	{ 1345, "Server", "EXPLAIN/SHOW can not be issued; lacking privileges for underlying table" },
	{ 1346, "Server", "File '%s' has unknown type '%s' in its header" },
	{ 1347, "Server", "'%s.%s' is not %s" },
	{ 1348, "Server", "Column '%s' is not updatable" },
	{ 1349, "Server", "View's SELECT contains a subquery in the FROM clause" },
	{ 1350, "Server", "View's SELECT contains a '%s' clause" },
	{ 1351, "Server", "View's SELECT contains a variable or parameter" },
	{ 1352, "Server", "View's SELECT refers to a temporary table '%s'" },
	{ 1353, "Server", "View's SELECT and view's field list have different column counts" },
	{ 1354, "Server", "View merge algorithm can't be used here for now (assumed undefined algorithm)" },
	{ 1355, "Server", "View being updated does not have complete key of underlying table in it" },
	{ 1356, "Server", "View '%s.%s' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them" },
	{ 1357, "Server", "Can't drop or alter a %s from within another stored routine" },
	{ 1358, "Server", "GOTO is not allowed in a stored procedure handler" },
	{ 1359, "Server", "Trigger already exists" },
	{ 1360, "Server", "Trigger does not exist" },
	{ 1361, "Server", "Trigger's '%s' is view or temporary table" },
	{ 1362, "Server", "Updating of %s row is not allowed in %strigger" },
	{ 1363, "Server", "There is no %s row in %s trigger" },
	{ 1364, "Server", "Field '%s' doesn't have a default value" },
	{ 1365, "Server", "Division by 0" },
	{ 1366, "Server", "Incorrect %s value: '%s' for column '%s' at row %ld" },
	{ 1367, "Server", "Illegal %s '%s' value found during parsing" },
	{ 1368, "Server", "CHECK OPTION on non-updatable view '%s.%s'" },
	{ 1369, "Server", "CHECK OPTION failed '%s.%s'" },
	{ 1370, "Server", "%s command denied to user '%s'@'%s' for routine '%s'" },
	{ 1371, "Server", "Failed purging old relay logs: %s" },
	{ 1372, "Server", "Password hash should be a %d-digit hexadecimal number" },
	{ 1373, "Server", "Target log not found in binlog index" },
	{ 1374, "Server", "I/O error reading log index file" },
	{ 1375, "Server", "Server configuration does not permit binlog purge" },
	{ 1376, "Server", "Failed on fseek()" },
	{ 1377, "Server", "Fatal error during log purge" },
	{ 1378, "Server", "A purgeable log is in use, will not purge" },
	{ 1379, "Server", "Unknown error during log purge" },
	{ 1380, "Server", "Failed initializing relay log position: %s" },
	{ 1381, "Server", "You are not using binary logging" },
	{ 1382, "Server", "The '%s' syntax is reserved for purposes internal to the MySQL server" },
	{ 1383, "Server", "WSAStartup Failed" },
	{ 1384, "Server", "Can't handle procedures with different groups yet" },
	{ 1385, "Server", "Select must have a group with this procedure" },
	{ 1386, "Server", "Can't use ORDER clause with this procedure" },
	{ 1387, "Server", "Binary logging and replication forbid changing the global server %s" },
	{ 1388, "Server", "Can't map file: %s, errno: %d" },
	{ 1389, "Server", "Wrong magic in %s" },
	{ 1390, "Server", "Prepared statement contains too many placeholders" },
	{ 1391, "Server", "Key part '%s' length cannot be 0" },
	{ 1392, "Server", "View text checksum failed" },
	{ 1393, "Server", "Can not modify more than one base table through a join view '%s.%s'" },
	{ 1394, "Server", "Can not insert into join view '%s.%s' without fields list" },
	{ 1395, "Server", "Can not delete from join view '%s.%s'" },
	{ 1396, "Server", "Operation %s failed for %s" },
	{ 1397, "Server", "XAER_NOTA: Unknown XID" },
	{ 1398, "Server", "XAER_INVAL: Invalid arguments (or unsupported command)" },
	{ 1399, "Server", "XAER_RMFAIL: The command cannot be executed when global transaction is in the %s state" },
	{ 1400, "Server", "XAER_OUTSIDE: Some work is done outside global transaction" },
	{ 1401, "Server", "XAER_RMERR: Fatal error occurred in the transaction branch - check your data for consistency" },
	{ 1402, "Server", "XA_RBROLLBACK: Transaction branch was rolled back" },
	{ 1403, "Server", "There is no such grant defined for user '%s' on host '%s' on routine '%s'" },
	{ 1404, "Server", "Failed to grant EXECUTE and ALTER ROUTINE privileges" },
	{ 1405, "Server", "Failed to revoke all privileges to dropped routine" },
	{ 1406, "Server", "Data too long for column '%s' at row %ld" },
	{ 1407, "Server", "Bad SQLSTATE: '%s'" },
	{ 1408, "Server", "%s: ready for connections. Version: '%s' socket: '%s' port: %d %s" },
	{ 1409, "Server", "Can't load value from file with fixed size rows to variable" },
	{ 1410, "Server", "You are not allowed to create a user with GRANT" },
	{ 1411, "Server", "Incorrect %s value: '%s' for function %s" },
	{ 1412, "Server", "Table definition has changed, please retry transaction" },
	{ 1413, "Server", "Duplicate handler declared in the same block" },
	{ 1414, "Server", "OUT or INOUT argument %d for routine %s is not a variable or NEW pseudo-variable in BEFORE trigger" },
	{ 1415, "Server", "Not allowed to return a result set from a %s" },
	{ 1416, "Server", "Cannot get geometry object from data you send to the GEOMETRY field" },
	{ 1417, "Server", "A routine failed and has neither NO SQL nor READS SQL DATA in its declaration and binary logging is enabled; if non-transactional tables were updated, the binary log will miss their changes" },
	{ 1418, "Server", "This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)" },
	{ 1419, "Server", "You do not have the SUPER privilege and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)" },
	{ 1420, "Server", "You can't execute a prepared statement which has an open cursor associated with it. Reset the statement to re-execute it." },
	{ 1421, "Server", "The statement (%lu) has no open cursor." },
	{ 1422, "Server", "Explicit or implicit commit is not allowed in stored function or trigger." },
	{ 1423, "Server", "Field of view '%s.%s' underlying table doesn't have a default value" },
	{ 1424, "Server", "Recursive stored functions and triggers are not allowed." },
	{ 1425, "Server", "Too big scale %d specified for column '%s'. Maximum is %lu." },
	{ 1426, "Server", "Too big precision %d specified for column '%s'. Maximum is %lu." },
	{ 1427, "Server", "For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column '%s')." },
	{ 1428, "Server", "You can't combine write-locking of system tables with other tables or lock types" },
	{ 1429, "Server", "Unable to connect to foreign data source: %s" },
	{ 1430, "Server", "There was a problem processing the query on the foreign data source. Data source error: %s" },
	{ 1431, "Server", "The foreign data source you are trying to reference does not exist. Data source error: %s" },
	{ 1432, "Server", "Can't create federated table. The data source connection string '%s' is not in the correct format" },
	{ 1433, "Server", "The data source connection string '%s' is not in the correct format" },
	{ 1434, "Server", "Can't create federated table. Foreign data src error: %s" },
	{ 1435, "Server", "Trigger in wrong schema" },
	{ 1436, "Server", "Thread stack overrun: %ld bytes used of a %ld byte stack, and %ld bytes needed. Use 'mysqld -O thread_stack=#' to specify a bigger stack." },
	{ 1437, "Server", "Routine body for '%s' is too long" },
	{ 1438, "Server", "Cannot drop default keycache" },
	{ 1439, "Server", "Display width out of range for column '%s' (max = %lu)" },
	{ 1440, "Server", "XAER_DUPID: The XID already exists" },
	{ 1441, "Server", "Datetime function: %s field overflow" },
	{ 1442, "Server", "Can't update table '%s' in stored function/trigger because it is already used by statement which invoked this stored function/trigger." },
	{ 1443, "Server", "The definition of table '%s' prevents operation %s on table '%s'." },
	{ 1444, "Server", "The prepared statement contains a stored routine call that refers to that same statement. It's not allowed to execute a prepared statement in such a recursive manner" },
	{ 1445, "Server", "Not allowed to set autocommit from a stored function or trigger" },
	{ 1446, "Server", "Definer is not fully qualified" },
	{ 1447, "Server", "View '%s'.'%s' has no definer information (old table format). Current user is used as definer. Please recreate the view!" },
	{ 1448, "Server", "You need the SUPER privilege for creation view with '%s'@'%s' definer" },
	{ 1449, "Server", "The user specified as a definer ('%s'@'%s') does not exist" },
	{ 1450, "Server", "Changing schema from '%s' to '%s' is not allowed." },
	{ 1451, "Server", "Cannot delete or update a parent row: a foreign key constraint fails (%s)" },
	{ 1452, "Server", "Cannot add or update a child row: a foreign key constraint fails (%s)" },
	{ 1453, "Server", "Variable '%s' must be quoted with `...`, or renamed" },
	{ 1454, "Server", "No definer attribute for trigger '%s'.'%s'. The trigger will be activated under the authorization of the invoker, which may have insufficient privileges. Please recreate the trigger." },
	{ 1455, "Server", "'%s' has an old format, you should re-create the '%s' object(s)" },
	{ 1456, "Server", "Recursive limit %d (as set by the max_sp_recursion_depth variable) was exceeded for routine %s" },
	{ 1457, "Server", "Failed to load routine %s. The table mysql.proc is missing, corrupt, or contains bad data (internal code %d)" },
	{ 1458, "Server", "Incorrect routine name '%s'" },
	{ 1459, "Server", "Table upgrade required. Please do \"REPAIR TABLE `%s`\" to fix it!" },
	{ 1460, "Server", "AGGREGATE is not supported for stored functions" },
	{ 1461, "Server", "Can't create more than max_prepared_stmt_count statements (current value: %lu)" },
	{ 1462, "Server", "`%s`.`%s` contains view recursion" },
	{ 1463, "Server", "non-grouping field '%s' is used in %s clause" },
	{ 1464, "Server", "The used table type doesn't support SPATIAL indexes" },
	{ 1465, "Server", "Triggers can not be created on system tables" },
	{ 1466, "Server", "Leading spaces are removed from name '%s'" },
	{ 1467, "Server", "Failed to read auto-increment value from storage engine" },
	{ 1468, "Server", "user name" },
	{ 1469, "Server", "host name" },
	{ 1470, "Server", "String '%s' is too long for %s (should be no longer than %d)" },
	{ 1471, "Server", "The target table %s of the %s is not insertable-into" },
	{ 1472, "Server", "Table '%s' is differently defined or of non-MyISAM type or doesn't exist" },
	{ 1473, "Server", "Too high level of nesting for select" },
	{ 1474, "Server", "Name '%s' has become ''" },
	{ 1475, "Server", "First character of the FIELDS TERMINATED string is ambiguous; please use non-optional and non-empty FIELDS ENCLOSED BY" },
	{ 1476, "Server", "The foreign server, %s, you are trying to create already exists." },
	{ 1477, "Server", "The foreign server name you are trying to reference does not exist. Data source error: %s" },
	{ 1478, "Server", "Table storage engine '%s' does not support the create option '%s'" },
	{ 1479, "Server", "Syntax error: %s PARTITIONING requires definition of VALUES %s for each partition" },
	{ 1480, "Server", "Only %s PARTITIONING can use VALUES %s in partition definition" },
	{ 1481, "Server", "MAXVALUE can only be used in last partition definition" },
	{ 1482, "Server", "Subpartitions can only be hash partitions and by key" },
	{ 1483, "Server", "Must define subpartitions on all partitions if on one partition" },
	{ 1484, "Server", "Wrong number of partitions defined, mismatch with previous setting" },
	{ 1485, "Server", "Wrong number of subpartitions defined, mismatch with previous setting" },
	{ 1486, "Server", "Constant/Random expression in (sub)partitioning function is not allowed" },
	{ 1487, "Server", "Expression in RANGE/LIST VALUES must be constant" },
	{ 1488, "Server", "Field in list of fields for partition function not found in table" },
	{ 1489, "Server", "List of fields is only allowed in KEY partitions" },
	{ 1490, "Server", "The partition info in the frm file is not consistent with what can be written into the frm file" },
	{ 1491, "Server", "The %s function returns the wrong type" },
	{ 1492, "Server", "For %s partitions each partition must be defined" },
	{ 1493, "Server", "VALUES LESS THAN value must be strictly increasing for each partition" },
	{ 1494, "Server", "VALUES value must be of same type as partition function" },
	{ 1495, "Server", "Multiple definition of same constant in list partitioning" },
	{ 1496, "Server", "Partitioning can not be used stand-alone in query" },
	{ 1497, "Server", "The mix of handlers in the partitions is not allowed in this version of MySQL" },
	{ 1498, "Server", "For the partitioned engine it is necessary to define all %s" },
	{ 1499, "Server", "Too many partitions (including subpartitions) were defined" },
	{ 1500, "Server", "It is only possible to mix RANGE/LIST partitioning with HASH/KEY partitioning for subpartitioning" },
	{ 1501, "Server", "Failed to create specific handler file" },
	{ 1502, "Server", "A BLOB field is not allowed in partition function" },
	{ 1503, "Server", "A %s must include all columns in the table's partitioning function" },
	{ 1504, "Server", "Number of %s = 0 is not an allowed value" },
	{ 1505, "Server", "Partition management on a not partitioned table is not possible" },
	{ 1506, "Server", "Foreign key condition is not yet supported in conjunction with partitioning" },
	{ 1507, "Server", "Error in list of partitions to %s" },
	{ 1508, "Server", "Cannot remove all partitions, use DROP TABLE instead" },
	{ 1509, "Server", "COALESCE PARTITION can only be used on HASH/KEY partitions" },
	{ 1510, "Server", "REORGANISE PARTITION can only be used to reorganise partitions not to change their numbers" },
	{ 1511, "Server", "REORGANISE PARTITION without parameters can only be used on auto-partitioned tables using HASH PARTITIONs" },
	{ 1512, "Server", "%s PARTITION can only be used on RANGE/LIST partitions" },
	{ 1513, "Server", "Trying to Add partition(s) with wrong number of subpartitions" },
	{ 1514, "Server", "At least one partition must be added" },
	{ 1515, "Server", "At least one partition must be coalesced" },
	{ 1516, "Server", "More partitions to reorganise than there are partitions" },
	{ 1517, "Server", "Duplicate partition name %s" },
	{ 1518, "Server", "It is not allowed to shut off binlog on this command" },
	{ 1519, "Server", "When reorganising a set of partitions they must be in consecutive order" },
	{ 1520, "Server", "Reorganize of range partitions cannot change total ranges except for last partition where it can extend the range" },
	{ 1521, "Server", "Partition function not supported in this version for this handler" },
	{ 1522, "Server", "Partition state cannot be defined from CREATE/ALTER TABLE" },
	{ 1523, "Server", "The %s handler only supports 32 bit integers in VALUES" },
	{ 1524, "Server", "Plugin '%s' is not loaded" },
	{ 1525, "Server", "Incorrect %s value: '%s'" },
	{ 1526, "Server", "Table has no partition for value %s" },
	{ 1527, "Server", "It is not allowed to specify %s more than once" },
	{ 1528, "Server", "Failed to create %s" },
	{ 1529, "Server", "Failed to drop %s" },
	{ 1530, "Server", "The handler doesn't support autoextend of tablespaces" },
	{ 1531, "Server", "A size parameter was incorrectly specified, either number or on the form 10M" },
	{ 1532, "Server", "The size number was correct but we don't allow the digit part to be more than 2 billion" },
	{ 1533, "Server", "Failed to alter: %s" },
	{ 1534, "Server", "Writing one row to the row-based binary log failed" },
	{ 1535, "Server", "Table definition on master and slave does not match: %s" },
	{ 1536, "Server", "Slave running with --log-slave-updates must use row-based binary logging to be able to replicate row-based binary log events" },
	{ 1537, "Server", "Event '%s' already exists" },
	{ 1538, "Server", "Failed to store event %s. Error code %d from storage engine." },
	{ 1539, "Server", "Unknown event '%s'" },
	{ 1540, "Server", "Failed to alter event '%s'" },
	{ 1541, "Server", "Failed to drop %s" },
	{ 1542, "Server", "INTERVAL is either not positive or too big" },
	{ 1543, "Server", "ENDS is either invalid or before STARTS" },
	{ 1544, "Server", "Event execution time is in the past. Event has been disabled" },
	{ 1545, "Server", "Failed to open mysql.event" },
	{ 1546, "Server", "No datetime expression provided" },
	{ 1547, "Server", "Column count of mysql.%s is wrong. Expected %d, found %d. The table is probably corrupted" },
	{ 1548, "Server", "Cannot load from mysql.%s. The table is probably corrupted" },
	{ 1549, "Server", "Failed to delete the event from mysql.event" },
	{ 1550, "Server", "Error during compilation of event's body" },
	{ 1551, "Server", "Same old and new event name" },
	{ 1552, "Server", "Data for column '%s' too long" },
	{ 1553, "Server", "Cannot drop index '%s': needed in a foreign key constraint" },
	{ 1554, "Server", "The syntax '%s' is deprecated and will be removed in MySQL %s. Please use %s instead" },
	{ 1555, "Server", "You can't write-lock a log table. Only read access is possible" },
	{ 1556, "Server", "You can't use locks with log tables." },
	{ 1557, "Server", "Upholding foreign key constraints for table '%s', entry '%s', key %d would lead to a duplicate entry" },
	{ 1558, "Server", "Column count of mysql.%s is wrong. Expected %d, found %d. Created with MySQL %d, now running %d. Please use mysql_upgrade to fix this error." },
	{ 1559, "Server", "Cannot switch out of the row-based binary log format when the session has open temporary tables" },
	{ 1560, "Server", "Cannot change the binary logging format inside a stored function or trigger" },
	{ 1561, "Server", "The NDB cluster engine does not support changing the binlog format on the fly yet" },
	{ 1562, "Server", "Cannot create temporary table with partitions" },
	{ 1563, "Server", "Partition constant is out of partition function domain" },
	{ 1564, "Server", "This partition function is not allowed" },
	{ 1565, "Server", "Error in DDL log" },
	{ 1566, "Server", "Not allowed to use NULL value in VALUES LESS THAN" },
	{ 1567, "Server", "Incorrect partition name" },
	{ 1568, "Server", "Transaction isolation level can't be changed while a transaction is in progress" },
	{ 1569, "Server", "ALTER TABLE causes auto_increment resequencing, resulting in duplicate entry '%s' for key '%s'" },
	{ 1570, "Server", "Internal scheduler error %d" },
	{ 1571, "Server", "Error during starting/stopping of the scheduler. Error code %u" },
	{ 1572, "Server", "Engine cannot be used in partitioned tables" },
	{ 1573, "Server", "Cannot activate '%s' log" },
	{ 1574, "Server", "The server was not built with row-based replication" },
	{ 1575, "Server", "Decoding of base64 string failed" },
	{ 1576, "Server", "Recursion of EVENT DDL statements is forbidden when body is present" },
	{ 1577, "Server", "Cannot proceed because system tables used by Event Scheduler were found damaged at server start" },
	{ 1578, "Server", "Only integers allowed as number here" },
	{ 1579, "Server", "This storage engine cannot be used for log tables\"" },
	{ 1580, "Server", "You cannot '%s' a log table if logging is enabled" },
	{ 1581, "Server", "Cannot rename '%s'. When logging enabled, rename to/from log table must rename two tables: the log table to an archive table and another table back to '%s'" },
	{ 1582, "Server", "Incorrect parameter count in the call to native function '%s'" },
	{ 1583, "Server", "Incorrect parameters in the call to native function '%s'" },
	{ 1584, "Server", "Incorrect parameters in the call to stored function '%s'" },
	{ 1585, "Server", "This function '%s' has the same name as a native function" },
	{ 1586, "Server", "Duplicate entry '%s' for key '%s'" },
	{ 1587, "Server", "Too many files opened, please execute the command again" },
	{ 1588, "Server", "Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation." },
	{ 1589, "Server", "Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation." },
	{ 1590, "Server", "The incident %s occured on the master. Message: %s" },
	{ 1591, "Server", "Table has no partition for some existing values" },
	{ 1592, "Server", "Statement is not safe to log in statement format." },
	{ 1593, "Server", "Fatal error: %s" },
	{ 1594, "Server", "Relay log read failure: %s" },
	{ 1595, "Server", "Relay log write failure: %s" },
	{ 1596, "Server", "Failed to create %s" },
	{ 1597, "Server", "Master command %s failed: %s" },
	{ 1598, "Server", "Binary logging not possible. Message: %s" },
	{ 1599, "Server", "View `%s`.`%s` has no creation context" },
	{ 1600, "Server", "Creation context of view `%s`.`%s' is invalid" },
	{ 1601, "Server", "Creation context of stored routine `%s`.`%s` is invalid" },
	{ 1602, "Server", "Corrupted TRG file for table `%s`.`%s`" },
	{ 1603, "Server", "Triggers for table `%s`.`%s` have no creation context" },
	{ 1604, "Server", "Trigger creation context of table `%s`.`%s` is invalid" },
	{ 1605, "Server", "Creation context of event `%s`.`%s` is invalid" },
	{ 1606, "Server", "Cannot open table for trigger `%s`.`%s`" },
	{ 1607, "Server", "Cannot create stored routine `%s`. Check warnings" },
	{ 1608, "Server", "Ambiguous slave modes combination. %s" },
	{ 1609, "Server", "The BINLOG statement of type `%s` was not preceded by a format description BINLOG statement." },
	{ 1610, "Server", "Corrupted replication event was detected" },
	{ 1611, "Server", "Invalid column reference (%s) in LOAD DATA" },
	{ 1612, "Server", "Being purged log %s was not found" },
	{ 1613, "Server", "XA_RBTIMEOUT: Transaction branch was rolled back: took too long" },
	{ 1614, "Server", "XA_RBDEADLOCK: Transaction branch was rolled back: deadlock was detected" },
	{ 1615, "Server", "Prepared statement needs to be re-prepared" },
	{ 1616, "Server", "DELAYED option not supported for table '%s'" },
	{ 1617, "Server", "The master info structure does not exist" },
	{ 1618, "Server", "<%s> option ignored" },
	{ 1619, "Server", "Built-in plugins cannot be deleted" },
	{ 1620, "Server", "Plugin is busy and will be uninstalled on shutdown" },
	{ 1621, "Server", "%s variable '%s' is read-only. Use SET %s to assign the value" },


	{ 2000, "Client", "Unknown MySQL error" },
	{ 2001, "Client", "Can't create UNIX socket (%d)" },
	{ 2002, "Client", "Can't connect to local MySQL server through socket '%s' (%d)" },
	{ 2003, "Client", "Can't connect to MySQL server on '%s' (%d)" },
	{ 2004, "Client", "Can't create TCP/IP socket (%d)" },
	{ 2005, "Client", "Unknown MySQL server host '%s' (%d)" },
	{ 2006, "Client", "MySQL server has gone away" },
	{ 2007, "Client", "Protocol mismatch; server version = %d, client version = %d" },
	{ 2008, "Client", "MySQL client ran out of memory" },
	{ 2009, "Client", "Wrong host info" },
	{ 2010, "Client", "Localhost via UNIX socket" },
	{ 2011, "Client", "%s via TCP/IP" },
	{ 2012, "Client", "Error in server handshake" },
	{ 2013, "Client", "Lost connection to MySQL server during query" },
	{ 2014, "Client", "Commands out of sync; you can't run this command now" },
	{ 2015, "Client", "Named pipe: %s" },
	{ 2016, "Client", "Can't wait for named pipe to host: %s pipe: %s (%lu)" },
	{ 2017, "Client", "Can't open named pipe to host: %s pipe: %s (%lu)" },
	{ 2018, "Client", "Can't set state of named pipe to host: %s pipe: %s (%lu)" },
	{ 2019, "Client", "Can't initialize character set %s (path: %s)" },
	{ 2020, "Client", "Got packet bigger than 'max_allowed_packet' bytes" },
	{ 2021, "Client", "Embedded server" },
	{ 2022, "Client", "Error on SHOW SLAVE STATUS:" },
	{ 2023, "Client", "Error on SHOW SLAVE HOSTS:" },
	{ 2024, "Client", "Error connecting to slave:" },
	{ 2025, "Client", "Error connecting to master:" },
	{ 2026, "Client", "SSL connection error" },
	{ 2027, "Client", "Malformed packet" },
	{ 2028, "Client", "This client library is licensed only for use with MySQL servers having '%s' license" },
	{ 2029, "Client", "Invalid use of null pointer" },
	{ 2030, "Client", "Statement not prepared" },
	{ 2031, "Client", "No data supplied for parameters in prepared statement" },
	{ 2032, "Client", "Data truncated" },
	{ 2033, "Client", "No parameters exist in the statement" },
	{ 2034, "Client", "Invalid parameter number" },
	{ 2035, "Client", "Can't send long data for non-string/non-binary data types (parameter: %d)" },
	{ 2036, "Client", "Using unsupported buffer type: %d (parameter: %d)" },
	{ 2037, "Client", "Shared memory: %s" },
	{ 2038, "Client", "Can't open shared memory; client could not create request event (%lu)" },
	{ 2039, "Client", "Can't open shared memory; no answer event received from server (%lu)" },
	{ 2040, "Client", "Can't open shared memory; server could not allocate file mapping (%lu)" },
	{ 2041, "Client", "Can't open shared memory; server could not get pointer to file mapping (%lu)" },
	{ 2042, "Client", "Can't open shared memory; client could not allocate file mapping (%lu)" },
	{ 2043, "Client", "Can't open shared memory; client could not get pointer to file mapping (%lu)" },
	{ 2044, "Client", "Can't open shared memory; client could not create %s event (%lu)" },
	{ 2045, "Client", "Can't open shared memory; no answer from server (%lu)" },
	{ 2046, "Client", "Can't open shared memory; cannot send request event to server (%lu)" },
	{ 2047, "Client", "Wrong or unknown protocol" },
	{ 2048, "Client", "Invalid connection handle" },
	{ 2049, "Client", "Connection using old (pre-4.1.1) authentication protocol refused (client option 'secure_auth' enabled)" },
	{ 2050, "Client", "Row retrieval was canceled by mysql_stmt_close() call" },
	{ 2051, "Client", "Attempt to read column without prior row fetch" },
	{ 2052, "Client", "Prepared statement contains no metadata" },
	{ 2053, "Client", "Attempt to read a row while there is no result set associated with the statement" },
	{ 2054, "Client", "This feature is not implemented yet" },
	{ 2055, "Client", "Lost connection to MySQL server at '%s', system error: %d" },
	{ 2056, "Client", "Statement closed indirectly because of a preceeding %s() call" },
	{ 2057, "Client", "The number of columns in the result set differs from the number of bound buffers. You must reset the statement, rebind the result set columns, and execute the statement again" }
};

MysqlErrorInfo::MysqlErrorInfo( void )
{
	m_err_size = sizeof(s_error_infos) / sizeof(struct error_info_t);
	mp_info = s_error_infos;
}

const char *MysqlErrorInfo::GetErrorType( void )
{
	return "Mysql";
}

